//
//  DestinaImageView.m
//  hai游～
//
//  Created by jakf_17 on 15/5/22.
//  Copyright (c) 2015年 jakf_17. All rights reserved.
//

#import "DestinaImageView.h"

@implementation DestinaImageView

- (void)dealloc
{
    [_model release];
    [_label release];
    [super dealloc];
}

- (instancetype)init
{
    self = [super init];
    if (self) {
        self.userInteractionEnabled = YES;
        self.layer.cornerRadius = 7;
        self.layer.masksToBounds = YES;
        [self createMyLabel];
    }
    return self;
}
- (void)createMyLabel
{
    self.label = [[UILabel alloc] initWithFrame:CGRectMake(5, ([[UIScreen mainScreen] bounds].size.width - 30) / 2 - 20, 100, 18)];
    _label.backgroundColor = [UIColor clearColor];
    [self addSubview:_label];
    [_label release];
    _label.font = [UIFont systemFontOfSize:12];
    _label.textColor = [UIColor whiteColor];
}
@end
